package com.epam.rentcar.utils.dbconn;

public abstract class ConnectionFactory {

	public static final int MySQL = 1;
	public static final int SQLite = 2; 
	
	public static ConnEstablisher getConnection(int whichConnection) {
		switch (whichConnection) { 
			case MySQL: return new MySQLConnection();
			case SQLite: return new SQLiteConnection();
		default : return null;
		} 
	}
}
